package com.gmadmin.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gmadmin.entity.UnitPosition;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UnitPositionMapper extends BaseMapper<UnitPosition> {

    /**
     * 根据用户id查询职位
     * @param userId 用户id
     * @return
     */
    List<UnitPosition> selectByUserId(@Param("userId") Long userId);
}
